package cn.edu.ujn.liuklab3.service;

import cn.edu.ujn.liuklab3.entity.Dish;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface DishService {

    Dish queryById(Integer dishId );

    Page<Dish> queryByPage(Dish dish, PageRequest pageRequest);

    Dish insert(Dish dish);

    Dish update(Dish dish);

    boolean deleteById(Integer dishId );

    cn.edu.ujn.util.Page<Dish> selectAll(Dish dish);

    List<Dish> findAll();
}
